const { Redis } = require('ioredis');
const { RedisLog } = require('../modules/log');

const redis = new Redis()

redis.on('connect', () => {
  RedisLog('connect successfully.')
})
redis.on('error', (err) => {
  RedisLog(err)
})

module.exports.redis = redis